<!DOCTYPE html>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<html lang="zh" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>My First Thymeleaf Page</title>
</head>
<body>
<!--<a th:href="@{/thy/click}">点击我</a>-->
<!--<s:message code="lxf.zh"/>-->
<form action="/thy/form" method="post" th:object="${userDTO}">


    guid:<input type="text" th:field="*{guid}" th:class="${#fields.hasErrors('guid')}? 'error'"/>
    <label th:class="${#fields.hasErrors('guid')}? 'error'"></label><br/>
    用户名:<input type="text" th:field="*{username}" th:class="${#fields.hasErrors('username')}? 'error'"/>
    <label th:class="${#fields.hasErrors('username')}? 'error'">as</label><br/>
    密码:<input type="password" th:field="*{password}" th:class="${#fields.hasErrors('password')}? 'error'"/>
    <label th:class="${#fields.hasErrors('password')}? 'error'">as</label><br/>
    昵称:<input type="text" th:field="*{nickname}" th:class="${#fields.hasErrors('nickname')}? 'error'"/>
    <label th:class="${#fields.hasErrors('nickname')}? 'error'">as</label><br/>
    <input type="submit" value="submit"/>
</form>


</body>
</html>